//
//  MallLiveCollectionViewCell.m
//  CYWFrame
//
//  Created by Macx on 2018/8/31.
//  Copyright © 2018年 Macx. All rights reserved.
//

#import "MallLiveCollectionViewCell.h"


@implementation MallLiveCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(Goods *)model {
    
    if (_model != model) {
        _model = model;
        
        [self.photo sd_setImageWithURL:[NSURL URLWithString:[model valueForKey:@"photo"][0]] placeholderImage:IMAGE(@"placeHolder")];
        
        self.title.text = [NSString stringWithFormat:@"%@\n", [model valueForKey:@"title"]];
        
        self.price.text = [NSString stringWithFormat:@"￥%.2lf", [[model valueForKey:@"price"] floatValue]/100];
        
    }
    
}
@end
